<?php

namespace App\Services;

use App\Models\Company;
use Slowlyo\OwlAdmin\Services\AdminService;

/**
 * 公司管理
 *
 * @method Company getModel()
 * @method Company|\Illuminate\Database\Query\Builder query()
 */
class CompanyService extends AdminService
{
	protected string $modelName = Company::class;

	public function listQuery()
	{
		$model = $this->getModel();
		return $this->query()->with('operator')->orderByDesc($model->getUpdatedAtColumn());
	}
	
}